home *** CD-ROM | disk | FTP | other *** search
Wrap
ffffmmmmttttmmmmssssgggg((((1111)))) ffffmmmmttttmmmmssssgggg((((1111)))) NNNNAAAAMMMMEEEE _ffff_mmmm_tttt_mmmm_ssss_gggg - display a message on _ssss_tttt_dddd_eeee_rrrr_rrrr or system console SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS _ffff_mmmm_tttt_mmmm_ssss_gggg [_----_cccc _c_l_a_s_s] [_----_uuuu _s_u_b_c_l_a_s_s] [_----_llll _l_a_b_e_l] [_----_ssss _s_e_v_e_r_i_t_y] [_----_tttt _t_a_g] [_----_aaaa _a_c_t_i_o_n] _t_e_x_t DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN Based on a message's classification component, _ffff_mmmm_tttt_mmmm_ssss_gggg either writes a formatted message to _ssss_tttt_dddd_eeee_rrrr_rrrr or writes a formatted message to the console. A formatted message consists of up to five standard components as defined below. The classification and subclass components are not displayed as part of the standard message, but rather define the source of the message and direct the display of the formatted message. The valid options are: _----_cccc _c_l_a_s_s Describes the source of the message. Valid keywords are: _hhhh_aaaa_rrrr_dddd The source of the condition is hardware. _ssss_oooo_ffff_tttt The source of the condition is software. _ffff_iiii_rrrr_mmmm The source of the condition is firmware. _----_uuuu _s_u_b_c_l_a_s_s A list of keywords (separated by commas) that further defines the message and directs the display of the message. Valid keywords are: _aaaa_pppp_pppp_llll The condition originated in an application. This keyword should not be used in combination with either _uuuu_tttt_iiii_llll or _oooo_pppp_ssss_yyyy_ssss. _uuuu_tttt_iiii_llll The condition originated in a utility. This keyword should not be used in combination with either _aaaa_pppp_pppp_llll or _oooo_pppp_ssss_yyyy_ssss. _oooo_pppp_ssss_yyyy_ssss The message originated in the kernel. This keyword should not be used in combination with either _aaaa_pppp_pppp_llll or _uuuu_tttt_iiii_llll. _rrrr_eeee_cccc_oooo_vvvv The application will recover from the condition. This keyword should not be used in combination with _nnnn_rrrr_eeee_cccc_oooo_vvvv. _nnnn_rrrr_eeee_cccc_oooo_vvvv The application will not recover from the condition. This keyword should not be used in combination with _rrrr_eeee_cccc_oooo_vvvv. _pppp_rrrr_iiii_nnnn_tttt Print the message to the standard error stream _ssss_tttt_dddd_eeee_rrrr_rrrr. _cccc_oooo_nnnn_ssss_oooo_llll_eeee Write the message to the system console. _pppp_rrrr_iiii_nnnn_tttt, _cccc_oooo_nnnn_ssss_oooo_llll_eeee, or both may be used. _----_llll _l_a_b_e_l Identifies the source of the message. _----_ssss _s_e_v_e_r_i_t_y Indicates the seriousness of the error. The keywords and definitions of the standard levels of _s_e_v_e_r_i_t_y are: PPPPaaaaggggeeee 1111 ffffmmmmttttmmmmssssgggg((((1111)))) ffffmmmmttttmmmmssssgggg((((1111)))) _hhhh_aaaa_llll_tttt The application has encountered a severe fault and is halting. _eeee_rrrr_rrrr_oooo_rrrr The application has detected a fault. _wwww_aaaa_rrrr_nnnn The application has detected a condition that is out of the ordinary and might be a problem. _iiii_nnnn_ffff_oooo The application is providing information about a condition that is not in error. _----_tttt _t_a_g The string containing an identifier for the message. _----_aaaa _a_c_t_i_o_n A text string describing the first step in the error recovery process. This string must be written so that the entire _a_c_t_i_o_n argument is interpreted as a single argument. _ffff_mmmm_tttt_mmmm_ssss_gggg precedes each action string with the _TTTT_OOOO _FFFF_IIII_XXXX_:::: prefix. _t_e_x_t A text string describing the condition. Must be written so that the entire _t_e_x_t argument is interpreted as a single argument. The environment variables _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB and _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL control the behavior of _ffff_mmmm_tttt_mmmm_ssss_gggg. _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB is set by the administrator in the _////_eeee_tttt_cccc_////_pppp_rrrr_oooo_ffff_iiii_llll_eeee for the system. Users can override the value of _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB set by the system by resetting _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB in their own _...._pppp_rrrr_oooo_ffff_iiii_llll_eeee files or by changing the value in their current shell session. _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL can be used in shell scripts. _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB tells _ffff_mmmm_tttt_mmmm_ssss_gggg which message components to select when writing messages to _ssss_tttt_dddd_eeee_rrrr_rrrr. The value of _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB is a colon separated list of optional keywords. _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB can be set as follows: _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB_====[_k_e_y_w_o_r_d[_::::_k_e_y_w_o_r_d[_::::. . .]]] _eeee_xxxx_pppp_oooo_rrrr_tttt _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB Valid _k_e_y_w_o_r_d_s are: _llll_aaaa_bbbb_eeee_llll, _ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy, _tttt_eeee_xxxx_tttt, _aaaa_cccc_tttt_iiii_oooo_nnnn, and _tttt_aaaa_gggg. If _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB contains a keyword for a component and the component's value is not the component's null value, _ffff_mmmm_tttt_mmmm_ssss_gggg includes that component in the message when writing the message to _ssss_tttt_dddd_eeee_rrrr_rrrr. If _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB does not include a keyword for a message component, that component is not included in the display of the message. The keywords may appear in any order. If _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB is not defined, if its value is the null string, if its value is not of the correct format, or if it contains keywords other than the valid ones listed above, _ffff_mmmm_tttt_mmmm_ssss_gggg selects all components. _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB affects only which message components are selected for display. All message components are included in console messages. _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL defines severity levels and associates print strings with them for use by _ffff_mmmm_tttt_mmmm_ssss_gggg. The standard severity levels shown below cannot be modified. Additional severity levels can be defined, redefined, and removed. PPPPaaaaggggeeee 2222 ffffmmmmttttmmmmssssgggg((((1111)))) ffffmmmmttttmmmmssssgggg((((1111)))) _0000 (no severity is used) _1111 HALT 2 ERROR 3 WARNING 4 INFO _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL is set as follows: _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL_====[_d_e_s_c_r_i_p_t_i_o_n[_::::_d_e_s_c_r_i_p_t_i_o_n[_::::...]]] _eeee_xxxx_pppp_oooo_rrrr_tttt _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL _d_e_s_c_r_i_p_t_i_o_n is a comma-separated list containing three fields: _d_e_s_c_r_i_p_t_i_o_n_====_s_e_v_e_r_i_t_y__k_e_y_w_o_r_d_,,,,_l_e_v_e_l_,,,,_p_r_i_n_t_s_t_r_i_n_g _s_e_v_e_r_i_t_y__k_e_y_w_o_r_d is a character string used as the keyword with the _----_ssss _s_e_v_e_r_i_t_y option to _ffff_mmmm_tttt_mmmm_ssss_gggg. _l_e_v_e_l is a character string that evaluates to a positive integer (other than _0000, _1111, _2222, _3333, or _4444, which are reserved for the standard severity levels). If the keyword _s_e_v_e_r_i_t_y__k_e_y_w_o_r_d is used, _l_e_v_e_l is the severity value passed on to _ffff_mmmm_tttt_mmmm_ssss_gggg(3C). _p_r_i_n_t_s_t_r_i_n_g is the character string used by _ffff_mmmm_tttt_mmmm_ssss_gggg in the standard message format whenever the severity value _l_e_v_e_l is used. If _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL is not defined, or if its value is null, no severity levels other than the defaults are available. If a _d_e_s_c_r_i_p_t_i_o_n in the colon separated list is not a comma separated list containing three fields, or if the second field of a comma separated list does not evaluate to a positive integer, that _d_e_s_c_r_i_p_t_i_o_n in the colon separated list is ignored. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS The exit codes for _ffff_mmmm_tttt_mmmm_ssss_gggg are the following: _0000 All the requested functions were executed successfully. _1111 The command contains a syntax error, an invalid option, or an invalid argument to an option. _2222 The function executed with partial success, however the message was not displayed on _ssss_tttt_dddd_eeee_rrrr_rrrr. _4444 The function executed with partial success, however the message was not displayed on the system console. _3333_2222 No requested functions were executed successfully. PPPPaaaaggggeeee 3333 ffffmmmmttttmmmmssssgggg((((1111)))) ffffmmmmttttmmmmssssgggg((((1111)))) EXAMPLES Example 1: The following example of _ffff_mmmm_tttt_mmmm_ssss_gggg produces a complete message in the standard message format and displays it to the standard error stream: _ffff_mmmm_tttt_mmmm_ssss_gggg _----_cccc _ssss_oooo_ffff_tttt _----_uuuu _rrrr_eeee_cccc_oooo_vvvv_,,,,_pppp_rrrr_iiii_nnnn_tttt_,,,,_aaaa_pppp_pppp_llll _----_llll _UUUU_XXXX_::::_cccc_aaaa_tttt _----_ssss _eeee_rrrr_rrrr_oooo_rrrr _----_tttt _UUUU_XXXX_::::_cccc_aaaa_tttt_::::_0000_0000_1111 _----_aaaa _""""_rrrr_eeee_ffff_eeee_rrrr _tttt_oooo _mmmm_aaaa_nnnn_uuuu_aaaa_llll_"""" _""""_iiii_nnnn_vvvv_aaaa_llll_iiii_dddd _ssss_yyyy_nnnn_tttt_aaaa_xxxx_"""" produces: UX:cat: ERROR: invalid syntax TO FIX: refer to manual UX:cat:138 Example 2: When the environment variable _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB is set as follows: _MMMM_SSSS_GGGG_VVVV_EEEE_RRRR_BBBB_====_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy_::::_tttt_eeee_xxxx_tttt_::::_aaaa_cccc_tttt_iiii_oooo_nnnn and Example 1 is used, _ffff_mmmm_tttt_mmmm_ssss_gggg produces: ERROR: invalid syntax TO FIX: refer to manual Example 3: When the environment variable _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL is set as follows: _SSSS_EEEE_VVVV______LLLL_EEEE_VVVV_EEEE_LLLL_====_nnnn_oooo_tttt_eeee_,,,,_5555_,,,,_NNNN_OOOO_TTTT_EEEE the following _ffff_mmmm_tttt_mmmm_ssss_gggg command: _ffff_mmmm_tttt_mmmm_ssss_gggg _----_cccc _ssss_oooo_ffff_tttt _----_uuuu _pppp_rrrr_iiii_nnnn_tttt _----_llll _UUUU_XXXX_::::_cccc_aaaa_tttt _----_ssss _nnnn_oooo_tttt_eeee _----_aaaa _""""_rrrr_eeee_ffff_eeee_rrrr _tttt_oooo _mmmm_aaaa_nnnn_uuuu_aaaa_llll_"""" _""""_iiii_nnnn_vvvv_aaaa_llll_iiii_dddd _ssss_yyyy_nnnn_tttt_aaaa_xxxx_"""" produces: UX:cat: NOTE: invalid syntax TO FIX: refer to manual and displays the message on _ssss_tttt_dddd_eeee_rrrr_rrrr. NNNNOOOOTTTTEEEESSSS A slightly different standard error message format and a new developer interface, pfmt, is being introduced as the replacement for fmtmsg. A similar interface, lfmt, is also being introduced for producing a standard format message and forwarding messages to the console and/or to the system message logging and monitoring facilities. fmtmsg will be removed at a future time. SSSSEEEEEEEE AAAALLLLSSSSOOOO _aaaa_dddd_dddd_ssss_eeee_vvvv_eeee_rrrr_iiii_tttt_yyyy(3C), _ffff_mmmm_tttt_mmmm_ssss_gggg(3C) PPPPaaaaggggeeee 4444